<?php

	class RedirectCommand implements ICommand
	{
		public function execute($event)
		{
			$url = $event->data;
			
			while (ob_get_level() > 0)
			{
				ob_end_clean();
			}
			
			header('location: '.$url);
			die();
		}
	}